home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / vim_src.zip / MAKEFILE.UNI < prev    next >
Text File  |  1993-01-12  |  4KB  |  169 lines

  1. #
  2. # Makefile for Vim on Unix, using gcc or standard cc
  3. #
  4.  
  5. #>>>>> choose bsd (Sun, Linux) or system V (Dynix/PTX)
  6. MACHINE = -DBSD
  7. #MACHINE = -DSYSV
  8.  
  9. #>>>>> choose one compiler
  10. ### standard C compiler, with optimizer or debugger
  11. CC=cc -O
  12. #CC=cc -g
  13.  
  14. ### GCC on sun, Dynix
  15. #CC=gcc -g -Wall -traditional
  16.  
  17. ### GCC 2.2.2d on Linux
  18. #CC=gcc -O6 -Wall
  19.  
  20. #>>>>> choose options:
  21. ### -DDIGRAPHS        digraph support
  22. ### -DTERMCAP        full termcap file support
  23. ### -DWILD_CARDS    wildcard expansion code
  24. ### -DDEBUG        output a lot of debugging garbage
  25. ### -DNO_BUILTIN_TCAPS    do not include builtin termcap entries
  26. ###                (use only with -DTERMCAP)
  27. ### -DSOME_BUILTIN_TCAPS include most useful builtin termcap entries
  28. ###                (use only without -DNO_BUILTIN_TCAPS)
  29. ### -DALL_BUILTIN_TCAPS    include all builtin termcap entries
  30. ###                (use only without -DNO_BUILTIN_TCAPS)
  31. DEFS = -DDIGRAPHS -DTERMCAP -DWILD_CARDS -DSOME_BUILTIN_TCAPS
  32.  
  33. #>>>>> link with termlib only if TERMCAP is defined
  34. LIBS = -ltermlib
  35. #LIBS = 
  36.  
  37. #>>>>> end of choices
  38. ###########################################################################
  39.  
  40. CFLAGS = -c $(MACHINE) $(DEFS)
  41.  
  42. INCL = vim.h globals.h param.h keymap.h macros.h ascii.h term.h unix.h debug.h
  43.  
  44. OBJ =    alloc.o unix.o buffers.o charset.o cmdline.o csearch.o digraph.o \
  45.     edit.o fileio.o help.o linefunc.o main.o mark.o message.o misccmds.o \
  46.     normal.o ops.o param.o quickfix.o regexp.o regsub.o screen.o \
  47.     script.o search.o storage.o tag.o term.o undo.o
  48.  
  49. ../vim: $(OBJ) version.c
  50.     $(CC) $(CFLAGS) version.c
  51.     $(CC) -o ../vim $(OBJ) version.o $(LIBS)
  52.  
  53. debug: $(OBJ) version.c
  54.     $(CC) $(CFLAGS) version.c
  55.     $(CC) -o ../vim -g $(OBJ) version.o $(LIBS)
  56.  
  57. ctags:
  58.     csh -c ctags *.c *.h
  59.  
  60. clean:
  61.     -rm -f $(OBJ) mkcmdtab.o version.o core ../vim mkcmdtab
  62.  
  63. #use this in case the files have been transported via an MSDOS system
  64.  
  65. FILES = *.c *.h makefile makefile.* cmdtab.tab proto/*.pro tags
  66.  
  67. dos2unix:
  68.     -mv arp_prot.h arp_proto.h
  69.     -mv ptx_stdl.h ptx_stdlib.h
  70.     -mv sun_stdl.h sun_stdlib.h
  71.     -mv makefile.dic makefile.dice
  72.     -mv makefile.uni makefile.unix
  73.     -mv makefile.man makefile.manx
  74.     -mv makefile.6sa makefile.6sas
  75.     -mv makefile.5sa makefile.5sas
  76.     for i in $(FILES); do tr -d '\r\032' < $$i > ~tmp~; mv ~tmp~ $$i; echo $$i; done
  77.  
  78. ###########################################################################
  79.  
  80. alloc.o:    alloc.c  $(INCL)
  81.     $(CC) $(CFLAGS) alloc.c
  82.  
  83. unix.o:    unix.c  $(INCL) unix.h
  84.     $(CC) $(CFLAGS) unix.c
  85.  
  86. buffers.o:    buffers.c  $(INCL)
  87.     $(CC) $(CFLAGS) buffers.c
  88.  
  89. charset.o:    charset.c  $(INCL)
  90.     $(CC) $(CFLAGS) charset.c
  91.  
  92. cmdline.o:    cmdline.c  $(INCL) cmdtab.h
  93.     $(CC) $(CFLAGS) cmdline.c
  94.  
  95. csearch.o:    csearch.c  $(INCL)
  96.     $(CC) $(CFLAGS) csearch.c
  97.  
  98. digraph.o:    digraph.c  $(INCL)
  99.     $(CC) $(CFLAGS) digraph.c
  100.  
  101. edit.o:    edit.c  $(INCL)
  102.     $(CC) $(CFLAGS) edit.c
  103.  
  104. fileio.o:    fileio.c  $(INCL)
  105.     $(CC) $(CFLAGS) fileio.c
  106.  
  107. help.o:    help.c  $(INCL)
  108.     $(CC) $(CFLAGS) help.c
  109.  
  110. linefunc.o:    linefunc.c  $(INCL)
  111.     $(CC) $(CFLAGS) linefunc.c
  112.  
  113. main.o:    main.c  $(INCL)
  114.     $(CC) $(CFLAGS) main.c
  115.  
  116. mark.o:    mark.c  $(INCL)
  117.     $(CC) $(CFLAGS) mark.c
  118.  
  119. message.o:    message.c  $(INCL)
  120.     $(CC) $(CFLAGS) message.c
  121.  
  122. misccmds.o:    misccmds.c  $(INCL)
  123.     $(CC) $(CFLAGS) misccmds.c
  124.  
  125. normal.o:    normal.c  $(INCL) ops.h
  126.     $(CC) $(CFLAGS) normal.c
  127.  
  128. ops.o:    ops.c  $(INCL) ops.h
  129.     $(CC) $(CFLAGS) ops.c
  130.  
  131. param.o:    param.c  $(INCL)
  132.     $(CC) $(CFLAGS) param.c
  133.  
  134. quickfix.o:    quickfix.c  $(INCL)
  135.     $(CC) $(CFLAGS) quickfix.c
  136.  
  137. regexp.o:    regexp.c  $(INCL)
  138.     $(CC) $(CFLAGS) regexp.c
  139.  
  140. regsub.o:    regsub.c  $(INCL)
  141.     $(CC) $(CFLAGS) regsub.c
  142.  
  143. screen.o:    screen.c  $(INCL)
  144.     $(CC) $(CFLAGS) screen.c
  145.  
  146. script.o:    script.c  $(INCL)
  147.     $(CC) $(CFLAGS) script.c
  148.  
  149. search.o:    search.c  $(INCL)
  150.     $(CC) $(CFLAGS) search.c
  151.  
  152. storage.o:    storage.c  $(INCL)
  153.     $(CC) $(CFLAGS) storage.c
  154.  
  155. tag.o:    tag.c  $(INCL)
  156.     $(CC) $(CFLAGS) tag.c
  157.  
  158. term.o:    term.c  $(INCL)
  159.     $(CC) $(CFLAGS) term.c
  160.  
  161. undo.o:    undo.c  $(INCL)
  162.     $(CC) $(CFLAGS) undo.c
  163.  
  164. cmdtab.h: cmdtab.tab mkcmdtab
  165.     mkcmdtab cmdtab.tab cmdtab.h
  166.  
  167. mkcmdtab: mkcmdtab.o
  168.     $(CC) -o mkcmdtab mkcmdtab.o
  169.